package observer.desc;

public class GuMing implements Observer {
    private String name;

    public GuMing(String name) {
        this.name = name;
    }

    @Override
    public void update(double price) {
        System.out.println(name+"观察到股票价格："+price);
    }
}


